package com.tengfei.main.question.domain.bo;


import com.tengfei.common.core.validate.AddGroup;
import com.tengfei.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 题库业务对象 qb_question_bank
 *
 * @author tengfei
 * @date 2022-07-28
 */

@Data
@ApiModel("题库业务对象")
public class QuestionBankBo {



    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @NotNull(message = "题库名称不能为空", groups = {EditGroup.class })
    private Long qbId;

    /**
     * 题库名称
     */
    @ApiModelProperty(value = "题库名称", required = true)
    @NotBlank(message = "题库名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String qbName;

    /**
     * 题库介绍
     */
    @ApiModelProperty(value = "题库介绍")
    private String qbDesc;

    /**
     * 题库封面
     */
    @ApiModelProperty(value = "题库封面")
    private String qbCover;

    /**
     * 是否开放
     */
    @ApiModelProperty(value = "是否开放", required = true)
    @NotNull(message = "是否开放不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer qbShow;

    /**
     * 题库模式
     */
    @ApiModelProperty(value = "题库模式", required = true)
    @NotNull(message = "题库模式不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer qbPattern;


}
